﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediaBusiness.Common
{
    /// <summary>
    /// 模块提供的导航功能 属性标签
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    public class NavigateAttribute : System.Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name">导航菜单的名称 请优先使用NavigateFolderType对象里面预定义的值</param>
        public NavigateAttribute(string name)
        {
            Name = name;
            Container = "default";
        }
        /// <summary>
        /// 导航名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 上级目录的名称上下级关系请使用/分开   如:统计报表/每周报表
        /// </summary>
        public string ParentFolderName { get; set; }

        /// <summary>
        /// 参数
        /// </summary>
        public string Params { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 容器名称
        /// </summary>
        public string Container { get; set; }
    }
}
